$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 190/$f+vw;
      top: 50%;
      transform: translateY(-50%);

      .p1 {
        background: linear-gradient(180deg, rgba(56, 110, 181, 0.50) 35.29%, rgba(255, 255, 255, 0.00) 84.31%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 40/$f+vw;
        text-transform: uppercase;
        font-weight: 600;
      }

      .p2 {
        color: #386EB5;
        font-size: 48/$f+vw;
        font-weight: 700;
        margin-top: -1vw;
      }
    }

    .types {
      border-top: 3px solid rgba(58, 133, 192, 0.10);
      background: rgba(0, 0, 0, 0.30);
      backdrop-filter: blur(5px);
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      .items {
        width: 65%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;

        .item {
          width: 20%;
          position: relative;
          cursor: pointer;

          &::before {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -2px;
            width: 0;
            transition: all 600ms;
            height: 4/$f+vw;
            background: #386EB5;
          }

          .p1 {
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 22/$f+vw 0;
            font-size: 20/$f+vw;
            font-weight: 700;
            transition: all 600ms;

            svg {
              display: block;
              width: 24/$f+vw;

              path {
                transition: all 600ms;
              }
            }
          }

          &:hover {
            &::before {
              width: 100%;
            }

            .p1 {
              color: #386EB5;

              svg {
                path {
                  stroke: #386EB5;
                }
              }
            }
          }
        }

        .active {
          &::before {
            width: 100%;
          }

          .p1 {
            color: #386EB5;

            svg {
              path {
                stroke: #386EB5;
              }
            }
          }
        }
      }
    }
  }

  .main {
    .search {
      background: #FBFBFB;
      padding: 100/$f+vw 394/$f+vw;
      display: flex;

      input {
        width: 85%;
        outline: none;
        background: #F6F6F6;
        border: none;
        font-size: 22/$f+vw;
        color: #000;
        text-indent: 40/$f+vw;
        padding: 30/$f+vw 0;

        &::placeholder {
          color: rgba(0, 0, 0, 0.5)
        }
      }

      .submit {
        width: 15%;
        background: #1280C4;
        font-size: 22/$f+vw;
        text-align: center;
        padding: 26/$f+vw 0;
        color: white;
        cursor: pointer;
      }
    }

    .section {
      margin: 80/$f+vw 190/$f+vw;

      .types {
        display: flex;
        border-bottom: 3px solid #D9D9D9;
        .item {
          color: #000;
          font-size: 24/$f+vw;
          margin-right: 64/$f+vw;
          padding: 0 1.5vw  20/$f+vw 1.5vw;
          position: relative;
          cursor: pointer;
          font-family: 'SourceHanSansCN-Medium';
          &::after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            bottom: -3px;
            width: 0;
            height: 3px;
            background: #386EB5;
            transition: all 600ms;
          }

          &:hover {
            &::after {
              width: 100%;
            }
          }
        }

        .active {
          font-family: 'SourceHanSansCN-Bold';
          &::after {
            width: 100%;
          }
        }
      }

      .thead {
        display: flex;
        color: rgba(0, 0, 0, .5);
        font-size: 16/$f+vw;
        margin: 2vw 0;
        justify-content: space-between;
        .t1 {
          width: 65%;
          text-indent: 80/$f+vw;
        }

        .t2 {
          width: 20%;
        }
      }

      .list {
        .item {
          display: flex;
          margin-bottom:45/$f+vw;
          align-items: center;
          justify-content: space-between;
          .t1 {
            width: 65%;
            display: flex;
            align-items: center;

            .icon {
              width: 48/$f+vw;
              height: 48/$f+vw;
              background: #2775BB;
              display: flex;
              align-items: center;
              justify-content: center;
              img {
                max-width:80%;
                max-height: 80%;
                display: block;
              }
            }

            .pt {
              color: #000;
              font-size: 22/$f+vw;
              font-weight: 600;
              margin-left: 32/$f+vw;
            }
          }

          .t2 {
            width: 20%;
            display: flex;
            align-items: center;
            justify-content: space-between;
           .size{
            color: #464646;
            font-size: 22/$f+vw;
            font-weight: 500;
           }

            a {
              display: flex;
              align-items: center;
              border: 1px solid #CFCFCF;
              padding: 0.4vw 2vw;
              color: #000;
              font-size: 22/$f+vw;
              margin-left: 1.5vw;
              transition: all 600ms;
              cursor: pointer;
              svg {
                display: block;
                margin-right: 0.3vw;
                width: 28/$f+vw;

                path {
                  fill: #2775BB;
                  transition: all 600ms;
                }
              }

              &:hover {
                background-color: #2775BB;
                border-color: #2775BB;
                color: white;

                svg {
                  path {
                    fill: white;
                  }
                }
              }
            }
          }
        }
      }

      .pager {
        display: flex;
        justify-content: flex-end;
        margin-top: 4vw;

        .prev,
        .next {
          background-color: rgba(182, 187, 193, .2);
          width: 46/$f+vw;
          height: 46/$f+vw;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          transition: all 600ms;

          svg {
            display: block;

            path {
              transition: all 600ms;
            }
          }

          &:hover {
            background: #2775BB;

            svg {
              path {
                stroke: white;
              }
            }
          }
        }

        .nums {
          display: flex;
          margin: 0 0.5vw;

          a {
            border: 1px solid #CFCFCF;
            width: 46/$f+vw;
            height: 46/$f+vw;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 600ms;
            color: #000;
            font-size: 16/$f+vw;
            margin: 0 0.3vw;

            &:hover {
              background: #2775BB;
              color: white;
              border-color: #2775BB;
            }
          }

          .active {
            background: #2775BB;
            color: white;
            border-color: #2775BB;
          }
        }
      }
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
    .content {
      width: 582/$f+vw;
      border-radius: 12px;
      background: linear-gradient(178deg, #E3ECFD -5.37%, #FFF 21.63%);
      padding: 34/$f+vw 57/$f+vw;
      position: relative;

      .t {
        color: #333;
        font-size: 24/$f+vw;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .close {
          cursor: pointer;

          svg {
            width: 32/$f+vw;
            display: block;
          }
        }
      }

      .form {
        .item {
          margin-top: 24/$f+vw;

          .tag {
            color: #444;
            font-size:20/$f+vw;

            span {
              color: #F00;
            }
          }

          input {
            border-radius: 4px;
            border: 1px solid #E9E9E9;
            height: 30/$f+vw;
            outline: none;
            width: 100%;
            margin-top: 10/$f+vw;
            text-indent: 10px;
            font-size: 16/$f+vw;
          }

          textarea {
            border-radius: 4px;
            border: 1px solid #E9E9E9;
            height: 138/$f+vw;
            outline: none;
            width: 100%;
            margin-top: 10/$f+vw;
            text-indent: 10px;
            font-size: 16/$f+vw;
            resize: none;
          }
        }

        .notice {
          display: flex;
          margin-top:32/$f+vw;
          cursor: pointer;
          .k {
            width: 12/$f+vw;
            height: 12/$f+vw;
            border: 1px solid #CCC;
            margin-top: 2px;
            transition: all 600ms
          }
          .fill{
            background-color: #000;
          }
          .pt{
            display: flex;
            font-size: 12/$f+vw;
            margin-left: 5px;
            p{
              color: #444;
            }
            a{
              color: #386EB5;
              text-decoration: underline;
            }
          }
        }
        button{
          width: 166px;
          background: #386EB5;
          line-height: 36/$f+vw;
          color:white;
          font-size: 15/$f+vw;
          outline: none;
          border: none;
          display: block;
          margin: 22/$f+vw auto 0 auto;
          cursor: pointer;
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      img{
        height: 150px;
      }
      .text{
        left: 5%;
        top:50%;
        .p1{
          font-size: 20px;
        }
        .p2{
          font-size: 20px;
          margin-top: -10px;
        }
      }
      .types{
        position: static;
        .items{
          width: 100%;
          .item{
            .p1{
              font-size: 12px;
              padding: 10px 0;
            }
          }
        }
      }
    }
    .main{
      .search{
        padding: 30px 5%;
        input{
          font-size: 14px;
          text-indent: 15px;
          padding: 15px 0;
        }
        .submit{
          font-size: 14px;
          padding: 15px 0;
          width: 25%;
        }
      }
      .section{
        margin: 30px 5%;
        .types{
          .item{
            font-size: 18px;
            margin-right: 15px;
            padding: 0 15px 10px 15px; 
          }
        }
        .thead{
          font-size: 16px;
          margin: 20px 0;
          .t1{
            text-indent: 55px;
            width: 50%;
          }
          .t2{
            width: 45%;
          }
        }
        .list{
          .item{
            margin-bottom: 20px;
            flex-wrap: wrap;
            .t1{
              width: 50%;
              .icon{
                width: 40px;
                height: 40px;
                img{
                  max-width: 30px;
                }
              }
              .pt{
                font-size: 14px;
                margin-left: 15px;
              }
            }
            .t2{
              width: 45%;
              .size{
                font-size: 16px;
              }
              a{
                font-size: 16px;
                padding: 3px 15px;
                svg{
                  width: 20px;
                }
              }
            }
          }
        }
        .pager{
          .prev,.next{
            width: 30px;
            height: 30px;
          }
          .nums{
            a{
              width: 30px;
              height: 30px;
              font-size: 14px;
            }
          }
        }
      }
    }
    .dialog{
      z-index: 1005;
      .content{
        width: 80%;
        padding: 15px;
        .t{
          font-size:18px;
          .close{
            svg{
              width: 20px;
            }
          }
        }
        .form{
          .item{
            margin-top: 10px;
            .tag{
              font-size: 14px;
            }
            input{
              height: 30px;
              font-size: 14px;
            }
          }
          .notice{
            margin-top: 10px;
            .k{
              width: 12px;
              height: 12px;
              margin-top: 5px;
            }
            .pt{
              font-size: 14px;
              flex-wrap: wrap;
            }
          }
          button{
            line-height: 40px;
            font-size: 16px;
            margin-top: 15px;
          }
        }
      }
    }
  }
}